package com.heatup.apt.common.dao.user;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.AutoMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.heatup.apt.model.user.UserAccountConsume;

import org.springframework.stereotype.Component;

/**
 *
 * UserAccountConsume 表数据库控制层接口
 *
 */
@Component
public interface UserAccountConsumeMapper extends AutoMapper<UserAccountConsume> {
	
	/**
	 * 分页查询
	 * @param smsLogPage
	 * @param paramsMap
	 * @return
	 */
	List<UserAccountConsume> queryUserAccountConsumegPage(Page<UserAccountConsume> smsLogPage, Map<String, Object> paramsMap);
	
	BigDecimal getAmountByUserIdAddOrderType(@Param("userId") int userId,@Param("orderType") int orderType,@Param("orderId") int orderId,@Param("createTime") String createTime);

}